package com.duobaoyu.dby.supply.biz.converter;

import com.duobaoyu.dby.common.core.constant.CommonConstants;
import com.duobaoyu.dby.common.core.convert.bean.ReferenceMapper;
import com.duobaoyu.dby.supply.common.biz.bo.config.BalanceWarnBO;
import com.duobaoyu.dby.supply.common.biz.dto.config.BalanceWarnDTO;
import com.duobaoyu.dby.supply.common.biz.vo.config.BalanceWarnVO;
import com.duobaoyu.dby.supply.db.entity.config.BalanceWarn;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;

/**
 * 余额预警配置Converter
 * @author chenms
 * @date 2023/10/19 11:14 AM
 */
@Mapper(uses = ReferenceMapper.class, builder = @Builder(disableBuilder = true), componentModel = CommonConstants.COMPONENT_MODEL)
public interface BalanceWarnConverter {
    BalanceWarn toBalanceWarn(BalanceWarnDTO balanceWarn);

    BalanceWarnVO toBalanceWarn(BalanceWarnBO balanceWarn);
}
